package com.cenxi.common.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author dijia
 * @date 2023/2/20
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseModel extends BaseID{
    /**创建时间*/
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**创建人*/
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    /**更新时间*/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    /**更新人*/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    /** 删除标识0-否 1-是*/
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer deleted;
}
